home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / lang / rcs567pc / diff / makefile < prev    next >
Encoding:
Makefile  |  1994-12-09  |  1.3 KB  |  54 lines

  1. # Makefile for GNU DIFF with emx+gcc 0.9 or newer for OS/2 2.x or DOS
  2.  
  3. # default target
  4. default:
  5.     @echo "Available targets: os2 dos"
  6.  
  7. os2:
  8.     $(MAKE) diff.exe diff3.exe gnuregex.dll \
  9.     CC="gcc -Zomf -Zmt -O" O=.obj REGEX=regex.lib \
  10.     LFLAGS="-s -Zstack 512 -Zcrtdll" DLFLAGS="-s -Zdll -Zcrtdll"
  11. dos:
  12.     $(MAKE) diff.exe CC="gcc -O -s" O=.o REGEX=regex.o
  13.  
  14. CFLAGS= -I. -DUSG -DOS2 -DHAVE_CONFIG_H -DHAVE_SYS_WAIT_H
  15.  
  16. DIFF =    diff$O analyze$O io$O context$O ed$O normal$O util$O dir$O \
  17.     fnmatch$O ifdef$O side$O cmpbuf$O getopt$O getopt1$O version$O
  18. DIFF3 =    diff3$O getopt$O getopt1$O version$O
  19. SDIFF =    sdiff$O getopt$O getopt1$O version$O
  20. CMP =    cmp$O error$O xmalloc$O cmpbuf$O getopt$O getopt1$O version$O
  21. DLL =    regex$O
  22.  
  23. .SUFFIXES: .c $O
  24.  
  25. .c$O:
  26.     $(CC) $(CFLAGS) -c $<
  27.  
  28. all: $(DYNLIB) diff.exe diff3.exe sdiff.exe cmp.exe
  29.  
  30. diff.exe: $(DIFF) $(REGEX)
  31.     $(CC) $(DIFF) $(REGEX) -o $@ $(LFLAGS)
  32.  
  33. diff3.exe: $(DIFF3)
  34.     $(CC) $(DIFF3) -o $@ $(LFLAGS)
  35.  
  36. sdiff.exe: $(SDIFF) 
  37.     $(CC) $(SDIFF) -o $@ $(LFLAGS)
  38.  
  39. cmp.exe: $(CMP) 
  40.     $(CC) $(CMP) -o $@ $(LFLAGS)
  41.  
  42. gnuregex.dll: gnuregex.def $(DLL)
  43.     $(CC) $(DLL) -o $@ gnuregex.def $(DLFLAGS)
  44.  
  45. regex.lib: gnuregex.def
  46.     emximp -o $@ gnuregex.def
  47.  
  48. $(DIFF): diff.h
  49.  
  50. context$O diff$O: regex.h
  51.  
  52. clean:
  53.     rm -f *.o *.obj *.lib
  54.